<?php

	$q = $_GET['id_resto'];
	$c = $_GET['id_campaign'];
		
	if (!$q) return;
	
	set_include_path('../140dev/db');
	
	require_once('140dev_config.php');	  
	require_once('db_lib.php');
	
	$oDB = new db;
    
 	if(!$oDB)
  	{
  		die('Could not connect: ' . mysql_error());
  	}
	
	try{
		$oDB->insert('MAST_AUDIT_ACCESS',"ID_RESTAURANT='".  $q . "', DT_TIMESTAMP=NOW(), DS_SOURCE='NEWSLETTER', ID_CAMPAIGN=" . $c);
	}
	catch(Exception $e){
		echo $e;
	}	
	



?>